package com.xiezc.common.result;

import lombok.Data;

import java.util.Collection;

@Data
public class ListResult<T> extends BaseResult {

    Collection<T> content;

    public static <T> ListResult<T> success(Collection<T> content) {

        ListResult<T> listResult = new ListResult<>();
        listResult.setContent(content);
        return listResult;
    }

}
